package com.iretailer.report.quartz.sendReqularly;

import cn.hutool.core.util.StrUtil;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "send.regularly")
public class SendRegularlyConfig {

    private String charsetName;

    public String getCharsetName() {
        if (StrUtil.isBlank(charsetName)) {
            return "GBK";
        }
        return charsetName;
    }

    public void setCharsetName(String charsetName) {
        this.charsetName = charsetName;
    }
}
